@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');

* {
    box-sizing: border-box;
}

body {
    background-color: pink;
    color: #fff;
    font-family: 'Muli', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    margin: 0;
}

.container {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 20px 40px;
    border-radius: 5px;
}

.container h1 {
    text-align: center;
}

.btn {
    width: 100%;
    background-color: lightpink;
    border: 0;
    padding: 15px;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    border: 0;
    border-radius: 5px;
    margin-top: 10px;
}

.btn:focus {
    outline: 0;
}

.btn:active {
    transform: scale(0.98);
    -webkit-transform: scale(0.98);
    -moz-transform: scale(0.98);
    -ms-transform: scale(0.98);
    -o-transform: scale(0.98);
}

.text {
    margin-top: 30px;
}

.text a {
    text-decoration: none;
    color: lightpink;
}

.form-control {
    width: 300px;
    position: relative;
    margin: 30px 0;
}

.form-control input {
    width: 100%;
    background-color: transparent;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    border: none;
    border-bottom: 2px solid #fff;
    padding: 15px 0;
    color: #fff;
}

.form-control input:focus,
.form-control input:valid{
    outline: 0;
    border-bottom-color: palevioletred;
}
.form-control input:valid{
    outline: 0;
    border-bottom-color: palevioletred;
}

.form-control label {
    font-size: 18px;
    position: absolute;
    top: 6px;
    left: 0;
    pointer-events: none;
}

.form-control label span {
    display: inline-block;
    min-width: 5px;
    transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -webkit-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -ms-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -o-transition: all .5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}


.form-control input:focus + label span,
.form-control input:valid + label span {
    color: palevioletred;
    transform: translateY(-100%);
    -webkit-transform: translateY(-100%);
    -moz-transform: translateY(-100%);
    -ms-transform: translateY(-100%);
    -o-transform: translateY(-100%);
}

